<template>
    <div>
        组件2
        <my-global-com/>
        <my-button 
          qqq='qwer' 
          :til='text'
          @qqq='fn'
          />
        <my-input v-model='text'/>
        <!-- v-model其实是 :value和 @input的结合体 -->
        <input type="text" v-model='text'>
        {{age123}}
        {{str}}
        <my-button>我自己的文案<i>666</i></my-button>
    </div>
</template>
<script>
export default {
  props:['age123'],
  data() {
    return {
      text:"你好啊",
      str:''
    }
  },
  created() {
    console.log("2组件")
  },
  methods: {
    fn(str){
      console.log(arguments)
      this.str = str
    }
  },
}
</script>
